							
							{if $userInfo == true}
								<div class="left avatar">
            	  					{$offer->getUser()->getThumb()}
            	  				</div>
            	  			{/if}
            	  			<div class="left title">
            	  				<a href="/users/{$offer->getUser()->getUsername()}">{$offer->getUser()->getUsername()}:</a> <a href="/offer/{$offer->getId()}"><strong>{$offer->getTitle()} for 5&euro;</strong></a>
            	  				<p class="information">In: <a href="/category/page/1/recent/{$offer->getCategory()->getId()}/{$offer->getCategory()->getCategory()}">{$offer->getCategory()->getCategory()}</a>, From: [todo], Delivery: <em style="color: red;">~{$offer->getRealizationDays()} days</em></p>
            	  			</div>
            	  			<div class="right order">
            	  				{if $loggedUser && $loggedUser->getId() != {$offer->getUsersId()}}
            	  				<button class="pointer" onclick="alert('todo');">Order Now</button>
            	  				<br /><p class="information">[todo] orders in queue</p>
            	  				<p class="links"><a href="/message/{$offer->getUsersId()}/offer/{$offer->getId()}">Contact Seller</a></p>
            	  				{elseif !$loggedUser}
            	  				<button class="pointer" onclick="alert('todo');">Order Now</button>
            	  				<br /><p class="information">[todo] orders in queue</p>
            	  				<p class="links"><a href="/login">Contact Seller</a></p>
            	  				{/if}
            	  			</div>
							<div class="clear"></div>
							<div class="left" style="background-color: #FFFFFF; -moz-border-radius: 8px; width: 320px; border: 1px solid silver;margin-top: 15px; padding: 5px; height: 30px;">
							<div id="fb-root"></div>
                				<script src="http://connect.facebook.net/en_US/all.js#appId=146147492125707&amp;xfbml=1"></script>
                				<fb:like href="http://xproject.kreatorsoftu.pl/offer/{$offer->getId()}" send="false" layout="standard" width="310" show_faces="false" action="recommend" colorscheme="light" font=""></fb:like>
                			</div>
							<div class="right" style="background-color: #FFFFFF; -moz-border-radius: 8px; width: 240px; border: 1px solid silver;margin-top: 15px; padding: 5px; height: 30px; font-size: 10pt;">
								<img src="/public/styles/images/success.gif" border="0" />[0]% positive
								&nbsp;&nbsp;<img src="/public/styles/images/hand_up.png" border="0" />[0]
								&nbsp;&nbsp;<img src="/public/styles/images/hand_down.png" border="0" />[0]
							</div>
							<div class="clear"></div>
							<div class="main_content">
								<div class="left description">
									{$offer->getDescription()}
									<br /><br />
									<p>Share this offer:</p>
									<div class="share">
										<div id="share1_{$offer->getId()}"></div>
										<script>$('div#share1_{$offer->getId()}').share();</script>
									</div>
								</div>
								<div class="right image">
									<div class="captioned_image">
										<div id="mainImg_{$offer->getId()}">{$offer->getThumb(400, 300)}</div>
										<div class="captions">
							                
							                {foreach $offer->getTagsToArray() as $tag}
							                <div class="text_left">
							                	<a href="#" style="text-decoration: none;">{$tag}</a>
   							                </div>
							                {/foreach}
							                
							            </div>	
									</div>
									<div class="clear"></div>
									{foreach $offer->getFiles() as $file}
										<div class="image_bottom left">
											<a href="#" onclick="$('#mainImg_{$offer->getId()}').html('<img src=\'/minigen.php?filepath={$offer->getConfig()->origin_dir}&filename={$file->getId()}.{$file->getExtension()}&width=400&height=300&ext={$file->getExtension()}\' alt=\'laptop\'/>');return false;">
												<img src="/minigen.php?filepath={$offer->getConfig()->origin_dir}&filename={$file->getId()}.{$file->getExtension()}&width=120&height=100&ext={$file->getExtension()}" alt="laptop"/>
											</a>
											
										</div>
									{/foreach}
								</div>
								<div class="clear"></div>
								<div class="info">
									<div class="left">created: {$offer->getAddDate()}</div>
									<div class="left">rated: [todo]</div>
									<div class="left">likes: [todo]</div>
									<div class="clear"></div>
								</div>
							</div>